﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using MovingChame.Web.Models;

namespace MovingChame.Web.Services
{
    [ServiceContract]
    public interface IAuthenticationService
    {
        [OperationContract]
        Guid ValidateUser(string username, string password);

        [OperationContract]
        Guid RegisterUser(string username, string password, string email, out string errorMessage);

        [OperationContract]
        UserData GetUser(Guid providerKey);

        [OperationContract]
        bool SendResetPasswordEmail(string email);

        [OperationContract]
        bool ResetPassword(string email, string token, string newPassword);
    }
}
